<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        /* 通常写法 */
        /* h1 {
            color: red;
        }
        p {
            color: red;
        }
        div {
            color: red;
        } */
        /* 继承写法 */
        body {
            color: red;
            /* 盒子属性不能被继承 */
            height: 100px;
        }
    </style>
</head>
<body>
    <h1>123</h1>
    <p>123</p>
    <div>123</div>
</body>
</html>